package com.ayoka.parenting.utils;

import android.util.Log;
import android.webkit.JavascriptInterface;

import com.jincp.common.utils.LiveDataBus;
import com.jincp.common.utils.UIUtils;


/**
 * Created by jinchunping on 2018/12/7.
 */

public class JSAndNative {

    /**
     * 关闭finish
     */
    @JavascriptInterface
    public void NVCValue(final String params) {
        UIUtils.postTaskSafely(new Runnable() {
            @Override
            public void run() {
                Log.d("TAG", params);
                LiveDataBus.getInstance().with("JSAndNative", String.class).postValue(params);
            }
        });
    }
}
